import { stringify } from 'querystring';
import request from '@/utils/request';
import { DEFAULT_URL_SEND_SMS } from '@/constants';

export async function saveData(option) {
    return request(`${DEFAULT_URL_SEND_SMS}/insert`, option);
}

export async function updateData(parameters, option) {
    return request(`${DEFAULT_URL_SEND_SMS}/updateState?${stringify(parameters)}`, option);
}
